const Road = {
  path: "/road",
  meta: {
    title: "路内停车",
    sort: 5,
  },
  redirect: "/road/duty/view",
  img: new URL("@/assets/image/ico/road.png",
    import.meta.url).href,
  imgActive: new URL(
    "@/assets/image/ico/road-blue.png",
    import.meta.url
  ).href,
  // component: () => import("@/view/road/index.vue"),
  children: [{
      path: "/road/duty",
      meta: {
        title: "排班管理",
        sort: 1,
      },
      img: new URL(
        "@/assets/image/ico/roadsideParkings/tollCollectorInformation.png",
        import.meta.url
      ).href,
      imgActive: new URL(
        "@/assets/image/ico/roadsideParkings/tollCollectorInformation-white.png",
        import.meta.url
      ).href,
      // component: () =>
      //   import("@/view/road/duty/index.vue"),
      children: [{
          path: "/road/duty/view",
          meta: {
            title: "排班总览",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/road/duty/view/index.vue"
            ),
        }, {
          path: "/road/duty/scheduling",
          meta: {
            title: "收费员排班",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/road/duty/scheduling/index.vue"
            ),
        },
        {
          path: "/road/duty/scheduling/add",
          meta: {
            title: "新增收费员排班",
            activePath: "/road/duty/scheduling",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/road/duty/scheduling/components/addComponent.vue"
            ),
        },
        {
          path: "/road/duty/scheduling/edit",
          meta: {
            title: "编辑收费员排班",
            activePath: "/road/duty/scheduling",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/road/duty/scheduling/components/editComponent.vue"
            ),
        },
        {
          path: "/road/duty/tollman",
          meta: {
            title: "收费员账号",
            sort: 3,
          },
          component: () =>
            import(
              "@/view/road/duty/tollman/index.vue"
            ),
        },
        {
          path: "/road/duty/team",
          meta: {
            title: "班组列表",
            sort: 4,
          },
          component: () =>
            import(
              "@/view/road/duty/team/index.vue"
            ),
        },
        {
          path: "/road/duty/shift",
          meta: {
            title: "班次列表",
            sort: 5,
          },
          component: () =>
            import(
              "@/view/road/duty/shift/index.vue"
            ),
        }, {
          path: "/road/duty/attendance",
          meta: {
            title: "考勤明细",
            sort: 6,
          },
          component: () =>
            import(
              "@/view/road/duty/attendance/index.vue"
            ),
        },
      ],
    },
    {
      path: "/road/berth",
      meta: {
        title: "泊位信息",
        sort: 2,
      },
      // component: () => import("@/view/road/berth/index.vue"),
      children: [{
          path: "/road/berth/topology",
          meta: {
            title: "设备拓扑图",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/road/berth/topology/index.vue"
            ),
        },
        {
          path: "/road/berth/berth",
          meta: {
            title: "泊位列表",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/road/berth/berth/index.vue"
            ),
        },
        {
          path: "/road/berth/section",
          meta: {
            title: "路段列表",
            sort: 3,
          },
          component: () =>
            import(
              "@/view/road/berth/section/index.vue"
            ),
        },
      ],
    },
    {
      path: "/road/device",
      meta: {
        title: "设备管理",
        sort: 3,
      },
      // component: () => import("@/view/road/device/index.vue"),
      children: [{
          path: "/road/device/hCamera",
          meta: {
            title: "高位视频摄像机",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/road/device/hCamera/index.vue"
            ),
        },
        {
          path: "/road/device/sensor",
          meta: {
            title: "地磁传感器",
            sort: 2,
          },
          component: () =>
            import(
              "@/view/road/device/sensor/index.vue"
            ),
        },
        {
          path: "/road/device/inspectionVehicle",
          meta: {
            title: "智能AI巡检车",
            sort: 3,
          },
          component: () =>
            import(
              "@/view/road/device/inspectionVehicle/index.vue"
            ),
        },
        {
          path: "/road/device/pda",
          meta: {
            title: "手持PDA终端",
            sort: 4,
          },
          component: () =>
            import(
              "@/view/road/device/pda/index.vue"
            ),
        },
        {
          path: "/road/device/etc",
          meta: {
            title: "ETC扣费点",
            sort: 5,
          },
          component: () =>
            import(
              "@/view/road/device/etc/index.vue"
            ),
        },
        {
          path: "/road/device/videoPile",
          meta: {
            title: "视频桩",
            sort: 6,
          },
          component: () =>
            import(
              "@/view/road/device/videoPile/index.vue"
            ),
        },
        {
          path: "/road/device/guideScreen",
          meta: {
            title: "诱导屏",
            sort: 7,
          },
          component: () =>
            import(
              "@/view/road/device/guideScreen/index.vue"
            ),
        }
      ],
    },
    {
      path: "/road/gui",
      meta: {
        title: "诱导发布",
        sort: 4,
      },
      img: new URL(
        "@/assets/image/ico/roadsideParkings/billingRules.png",
        import.meta.url
      ).href,
      imgActive: new URL(
        "@/assets/image/ico/roadsideParkings/billingRules-white.png",
        import.meta.url
      ).href,
      // component: () => import("@/view/road/gui/index.vue"),
      children: [{
          path: "/road/gui/device",
          meta: {
            title: "设备参数",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/road/gui/device/index.vue"
            ),
        },
        {
          path: "/road/gui/device/detail",
          meta: {
            title: "诱导屏配置屏显",
            activePath: "/gui/device",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/road/gui/device/components/detailComponent.vue"
            ),
        },
      ]
    },
    {
      path: "/road/config",
      meta: {
        title: "全局配置",
        sort: 5,
      },
      // component: () => import("@/view/road/config/index.vue"),
      children: [{
          path: "/road/config/chargingRule",
          meta: {
            title: "计费规则管理",
            sort: 1,
          },
          component: () =>
            import(
              "@/view/road/config/billingRuleManagement/index.vue"
            ),
        },
        {
          path: "/road/config/chargingRule/add",
          meta: {
            title: "新增计费规则",
            activePath: "/road/config/chargingRule",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/road/config/billingRuleManagement/components/addComponent.vue"
            ),
        },
        {
          path: "/road/config/chargingRule/edit",
          meta: {
            title: "编辑计费规则",
            activePath: "/road/config/chargingRule",
            hidden: true,
          },
          component: () =>
            import(
              "@/view/road/config/billingRuleManagement/components/editComponent.vue"
            ),
        },
      ],
    },
  ],
};

export default Road;